<!--
Name: requirement_details_edit.tpl.html
Author: Philip D. Nichols (philipdnichols@gmail.com)
Description: Requirements details edit page for Artemis CS411 Project 1.
Last Modified: 10/20/2008
-->

<br />

<form action="edit.php" method="post" name="form">

<input name="type" type="hidden" value="requirement" />
<input name="action" type="hidden" value="edit" />
<input name="id" type="hidden" value="{REQUIREMENT_ID}" />

<table width="600px" cellpadding="2" cellspacing="2" border="0" align="center">
	<tr>
        <td colspan="3" align="center" class="table_title">Requirement #{REQUIREMENT_ID} Details
        </td>
    </tr>
</table>

<br />

<table cellpadding="2" cellspacing="0" border="0" align="center" class="main_table" id="main_table">
    <tr>
        <td class="table_element_titles">ID
        </td>
        
        <td class="table_cells" width="350px">{REQUIREMENT_ID}
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Short Description
        </td>
        
        <td class="table_cells"><textarea name="req_short_desc" cols="30" rows="4">{REQUIREMENT_SHORT_DESCRIPTION}</textarea>
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Details
        </td>
        
        <td class="table_cells"><textarea name="req_details" cols="30" rows="4">{REQUIREMENT_DETAILS}</textarea>
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Status
        </td>
        
        <td class="table_cells"><select name="req_status" size="1">
        							<!-- BEGIN status -->
                                    <option value="{REQUIREMENT_STATUS_ID}" {REQUIREMENT_STATUS_SELECTED} >{REQUIREMENT_STATUS_NAME}</option>
                                    <!-- END status -->
        						</select>
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Comments
        </td>
        
        <td class="table_cells">{REQUIREMENT_COMMENTS}<br />
        						<textarea name="req_comments" cols="30" rows="4"></textarea>
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Test Case References
        </td>
        
        <td class="table_cells"><select name="tc_references[]" size="5" multiple>
        							<!-- BEGIN test_cases -->
                                	<option value="{TEST_CASE_ID}" {TEST_CASE_IDS_SELECTED} >{TEST_CASE_ID_NAME}</option>
                                	<!-- END test_cases -->
        						</select>
        </td>
    </tr>
</table>

<br />

<table width="250px" cellpadding="2" cellspacing="2" border="0" align="center">
    <tr>
        <td align="center"><input name="save_changes" type="submit" value="Save Changes"
        onMouseOver="javascript:window.status='Save Changes';" onMouseOut="javascript:window.status='';" />
        </td>
        
        <td align="center"><input name="delete_requirement" type="submit" value="Delete Requirement"
        onMouseOver="javascript:window.status='Delete Requirement';" onMouseOut="javascript:window.status='';" />
        </td>
    </tr>
</table>

<br />

<table width="250px" cellpadding="2" cellspacing="2" border="0" align="center">
	<tr>
        <td align="center"><a href="requirements.php">Return to Project Requirements</a>
        </td>
    </tr>
    
    <tr>
    	<td align="center"><a href="test_cases.php">Project Test Cases</a>
        </td>
    </tr>
</table>

</form>

